home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / Macintosh Tracker 1.1 Source / Tracker Client Folder / CMyApplication.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-01  |  1.6 KB  |  59 lines  |  [TEXT/KAHL]

  1. /* CMyApplication.h */
  2.  
  3. #pragma once
  4.  
  5. #include "CApplication.h"
  6. #include <Aliases.h>
  7.  
  8. #define TRACKERSERVERCREATOR ('∫Tsp')
  9. #define FRANKSEIDECREATOR ('∫Tsq')
  10.  
  11. #define ControlEventClass ('∫Tsp')
  12.  
  13. #define ControlEvent ('∫Ctl')
  14. #define keyKeyPressCharacter ('∫Key')
  15.  
  16. #define ErrorEvent ('∫Err')
  17. #define keyErrorIDNum ('∫Er#')
  18.  
  19. /* modifiers for open event */
  20. #define keyAntiAliasing ('∫Saa')
  21. #define keyStereoOn ('∫Sso')
  22. #define keySamplingRate ('∫Ssr')
  23. #define keyNumRepeats ('∫Snr')
  24. #define keySpeed ('∫Ssp')
  25. #define keyStereoMix ('∫Ssm')
  26. #define keyLoudness ('∫Svl')
  27. #define keyNumBits ('∫Bit')
  28. #define keySenderPSN ('∫Psn')
  29.  
  30.  
  31. #define FatalErrorUnknown (0)
  32. #define FatalErrorOutOfMemory (1)
  33. #define FatalErrorInternalError (2)
  34. #define FatalErrorCantOpenCompressedFiles (3)
  35. #define FatalErrorCouldntOpenFile (4)
  36. #define FatalErrorCouldntCloseFile (5)
  37. #define FatalErrorNotASong (6)
  38. #define FatalError68020NeededID (7)
  39.  
  40.  
  41. /* this is to override anything you want to change about the default application */
  42. struct    CMyApplication    :    CApplication
  43.     {
  44.         /* */            CMyApplication();
  45.         void            InitMenuBar(void);
  46.         void            DispatchOpenDocument(FSSpec* TheFSSpec);
  47.         void            DoMenuOpen(void);
  48.         void            DoMenuNew(void);
  49.         void            EnableMenuItems(void);
  50.  
  51.         void            LaunchTracker(OSType TrackerCreator);
  52.         void            KillPlayer(ProcessSerialNumber PlayerSN);
  53.         void            SendMessage(ProcessSerialNumber PlayerSN, AppleEvent* Message);
  54.         static    pascal    OSErr    MyHandleOBIT(AppleEvent* theAppleEvent,
  55.                                 AppleEvent* reply, long handlerRefcon);
  56.         static    pascal    OSErr    MyHandleERROR(AppleEvent* theAppleEvent,
  57.                                 AppleEvent* reply, long handlerRefcon);
  58.     };
  59.